home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Programmer Disk
/
The Programmer Disk (Microforum).iso
/
xpro
/
basic3
/
pro14
/
secure.doc
< prev
Wrap
Text File
|
1991-06-06
|
3KB
|
88 lines
SECURE
Version 4.2
Copyright 1991-Steve Lewis
June 6, 1991
SECURE was designed as a secure front-end for a program compiled in BASIC.
SECURE is patched ahead of the start of the BASIC program, thus serving as
a key. The text file, called AUTHORIZ, MUST BE PRESENT IN THE SAME DIRECTORY
AS THE PROTECTED PROGRAM, IN ORDER FOR THE PROTECTED PROGRAM TO READ IT! The
first line of AUTHORIZ contains the 8-digit serial number, followed by the
checksum.
The format is as shown below;
SERIAL NUMBER
CHECKSUM<cr>
If the checksum is correct for the serial number, then the security flag,
labeled as "SECURITY" will be set to 1. If the checksum is not correct, or if
AUTHORIZ is not present in the same directory as the protected program, then
"SECURITY" will be set to 0. It is up to the programmer to decide how to use
this flag. The programmer may decide to terminate the program upon "SECURITY"
assuming a value of 0, or may decide not to permit advanced features of the
protected program to be accessed if "SECURITY" has a value of 0.
As an example, a programmer may decide to jump from line 100 to line 120 if
"SECURITY"=1. In this case, the program would be written as;
100 If SECURITY=1 then goto 120
In addition to this document, the following files are provided;
PROTECT.EXE
SECURE.BAS
The first step is to append SECURE.BAS to your BASIC program. The only
restriction is that YOUR PROGRAM MUST START AT LINE 20 OR ABOVE!
Run PROTECT.EXE with SECURE.BAS present in the same directory, and you will be
asked to enter a 5-digit Security Code to be imbedded in the BASIC program. You
will then be asked to enter the filename of the BASIC program that you wish to
protect, followed by the serial number that you wish to assign to the user's
copy. PROTECT.EXE will then create a file called PROGRAM.BAS, as well as the
file named AUTHORIZ. PROGRAM.BAS is your protected BASIC program. Rename it as
desired, and then compile it.
While it's true that a user can give out the serial number and the checksum
to other users, the user will be revealing his or her identity, since only that
person's serial number will work! Also, it will work ONLY with copies that have
the SAME 5-digit Security Code. For each 5-digit code, there is a DIFFERENT
checksum for the SAME serial number!
Written by Steve Lewis for the IBM PC using DOS 2.0 or
later, including DOS 4.01
SECURE is supplied for personal, private use. Feel free to
distribute SECURE given these restrictions:
o SECURE shall be supplied in its original, unmodified
form, which includes this documentation;
o no fee is charged.
o Commercial use ONLY by permission of the author.
If you are using SECURE and find it of value, your gift in
any amount ($15 suggested) will be greatly appreciated.
Makes checks payable to:
Steve Lewis
405 South Sunnyvale Ave.
#210
Sunnyvale, CA 94086
Voice: (415) 469-6604